Skip to main content

All Questions

Tagged with
1vote
1answer
7kviews

Creating a Tree from an input string

I have a tree in a file which looks like this: (1 (2 (3 (10 11) 15) 4 (5 (() 13) 6))) Here, a Node and its children are written like this: A ...
yadav_vi's user avatar
1vote
1answer
715views

Sum of nodes at a given depth of a binary tree (String representation)

Given a binary tree of integers and a depth, the goal is to find the sum of all node values at the depth in the tree. The root is considered depth 0, and the tree is given as a string in the format: <...
BrainFRZ's user avatar
3votes
1answer
2kviews

Parsing structured text in Java

I am quite new to Java. I have data structured like this: ...
yasar's user avatar
  • 1,497

close